/**
 * @Author: bask
 * @Date: 2022/4/2 16:00
 */
public class Charging {
    public double money(long minute) {
        double money = 0;
        if(minute>1800 || minute <=0){
            return -1;
        }else{
            if(minute<=20)
                money = minute*0.05;
            else
                money = 1+(minute-20)*0.1;
        }
        return money;
    }
}
